using huqiang.Core.HGUI;
using huqiang.UIComposite;
using huqiang.UIEvent;
using huqiang.UIModel;
public class StartPageView
{
    public ScrollY ScrollY;
    public GridScroll GridScroll;
    public ScrollX ScrollX;
    public Line LineA;
    public InputBox InputBox;
    public UserEvent Last;
    public UserEvent Next;
    void FieldMatching(UIElement ui)
    {
        switch(ui.name)
        {
            case "ScrollY":
                ScrollY = ui.composite as ScrollY;
                break;
            case "GridScroll":
                GridScroll = ui.composite as GridScroll;
                break;
            case "ScrollX":
                ScrollX = ui.composite as ScrollX;
                break;
            case "LineA":
                LineA = ui as Line;
                break;
            case "InputBox":
                InputBox = ui.composite as InputBox;
                break;
            case "Last":
                Last = ui.userEvent;
                break;
            case "Next":
                Next = ui.userEvent;
                break;
        }
    }
    public void Matching(UIElement ui)
    {
        UIBase.FieldMatching(ui, FieldMatching, 7);
    }
}